package com.hpf.cloud.apis;

import com.hpf.cloud.constants.AdminConstants;
import com.hpf.cloud.pojo.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @description: 访问admin service的入口
 * configuration = AdminFeignConfiguration.class,fallback = AdminServiceFeignFallback.class
 * @datetime: 2020/11/29 18:53
 * @author: huangpengfei
 */
@FeignClient(value = AdminConstants.ADMIN_APPLICATION_NAME)
public interface IAdminServiceFeign {

    /**
     * 查询列表
     * @param current
     * @param pageSize
     * @return
     */
     @GetMapping("/student/list")
     CommonResult list(@RequestParam(value = "current") Integer current,@RequestParam(value = "pageSize") Integer pageSize);
}
